package com.qf.data.course.vo.output;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * author Ken
 * create_time 2022/11/29
 */
@Data
@Accessors(chain = true)
public class CourseTypeTreeNode implements Serializable {

    private Long id;
    private String label;
    private List<CourseTypeTreeNode> children = new ArrayList<>();

    public void addChildren(CourseTypeTreeNode node){
        this.children.add(node);
    }
}
